package ui.activity;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.wyz.troika_test.R;

import butterknife.BindView;
import presenter.AdvicePresenter;
import ui.adapter.AdviceRecyclerAdapter;
import ui.view.IAdviceView;

/**
 * Created by 10153 on 2018/7/31.
 */

public class AdviceActivity extends BaseActivity<AdvicePresenter> implements IAdviceView{
    
    @BindView(R.id.recycler_view_advice) protected RecyclerView mRecyclerView;
    private AdviceRecyclerAdapter mAdapter;
    
    @Override
    public int getLayout() {
        return R.layout.activity_advice;
    }
    
    @Override
    public void initPresenter() {
        this.mPresenter = new AdvicePresenter(this);
    }
    
    @Override
    protected void init() {
        super.init();
        mRecyclerView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false));
        mAdapter = new AdviceRecyclerAdapter(this);
        mRecyclerView.setAdapter(mAdapter);
    }
    
    @Override
    public void fillData() {
    
    }
    
    @Override
    public void refreshData() {
    
    }
    
    @Override
    public void showADProgressBar() {
    
    }
    
    @Override
    public void hideADProgressBar() {
    
    }
}
